*Helena Holmlund
*07/08/2008

/*********************************************************************************************************
This short code informs on how to assign individual participation in the Swedish compulsory school reform.
1. Make sure your data set includes the variables year of birth (foddar), municipality (kommun60)
and parish (forsamling60).
2. Merge "slutgiltiga_reformkommuner_fob60" to your dataset using the kommun60-variable.
3. Create a reform-indicator and make sure you drop the municipalities/parishes that can not be coded with
certainty - see below.
**********************************************************************************************************/



*Generate a dummy variable for each individual for reform participation.
*------------------------------------------------------------------------

gen experiment=.
replace experiment=1 if (foddar>=firstcohort60 & firstcohort60~=.)

replace experiment=0 if (foddar<firstcohort60 & firstcohort60~=.)



*Drop unclear municipalities/parishes:
*----------------------------------------

replace experiment=. if forsamling60==18017	/*h�gersten*/
replace experiment=. if forsamling60==18018	/*br�nnkyrka*/
replace experiment=. if forsamling60==18019	/*vant�r*/
replace experiment=. if forsamling60==18020	/*enskede*/
replace experiment=. if forsamling60==18021	/*skarpn�ck*/
replace experiment=. if forsamling60==18022	/*farsta*/


replace experiment=. if kommun60==281	/*s�dert�lje*/
replace experiment=. if kommun60==283	/*sundbyberg*/
replace experiment=. if kommun60==580	/*link�ping*/
replace experiment=. if kommun60==680	/*j�nk�ping*/

replace experiment=. if forsamling60==128007	/*limhamn*/
replace experiment=. if kommun60==1283	/*h�lsingborg*/

replace experiment=. if forsamling60==148016	/*�rgryte*/
replace experiment=. if forsamling60==148017	/*lundby*/
replace experiment=. if forsamling60==148019	/*br�mareg�rden*/
replace experiment=. if forsamling60==148003	/*gamlestads=st pauli*/
replace experiment=. if forsamling60==148006	/*h�rlanda*/

replace experiment=. if kommun60==2482		/*skellefte�*/
